package com.authine.cloudpivot.web.api.secondopen.dao;

import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: brookpeng
 * @Date: 2021/9/26 16:09
 */
@Repository
public interface PortalMapper {

    public List<Map<String, Object>> getCompany(String userId);

    public List<Map<String, Object>> getMeetingRooms();

    public List<Map<String, Object>> getAttachmentListByUserId(String userId);

    public List<Map<String, Object>> getAttachmentListByUserIdGroupBySchemaCode(String userId);

    public List<Map<String, Object>> getAttachmentListByUserIdGroupByInstanceId(@Param("userId") String userId, @Param("schemaCode") String schemaCode);

    public List<Map<String, Object>> getAttachmentListByUserIdAndInstanceId(@Param("userId") String userId, @Param("instanceId") String instanceId);

    public List<Map<String, Object>> getAttachmentListByFileName(@Param("userId") String userId, @Param("fileName") String fileName, @Param("searchTimeFrom") String searchTimeFrom, @Param("searchTimeTo") String searchTimeTo);

    public List<Map<String, Object>> getHYJYList(@Param("userId") String userId, @Param("userIdLike") String userIdLike);

    public List<Map<String, Object>> getHYJYListByHYLX(@Param("userId") String userId, @Param("userIdLike") String userIdLike, @Param("hylx") String hylx);

    public List<Map<String, Object>> getHYJYListByHYLXLike(@Param("userId") String userId, @Param("userIdLike") String userIdLike, @Param("fileName") String fileName, @Param("searchTimeFrom") String searchTimeFrom, @Param("searchTimeTo") String searchTimeTo);

    public List<Map<String, Object>> getCompanyByLoginUserRole(String departmentID);

    public List<Map<String, Object>> getMainOrganizationID();

    List<Map<String, Object>> getListMeetingRoomByCompanyId(@Param("companyId") String companyId);
}
